const {Schema,model}=require('mongoose');
const  advertiseSchema=new Schema({
    communityId:{
        type:Schema.Types.ObjectId,
        ref:'communityModel'
        },
    advertiseportId:{
    type:Schema.Types.ObjectId,
    ref:'advertisingModel'
    },
    size:String,//广告位大小
    price:String,//广告位金额
    locations:String,//广告位位置
    leasee:String,//出租人,租赁方
    leaseeContacts:String,//联系人
    leaseeTel:String,//联系电话
    contractNumber:String,//合同编号
    tenant:String, //租户
    signingDate:String,//签订日期
    representative:String,//法定代表
    tenantContacts:String,//租户联系人
    contractType:String,//合同状态
    term:String,//租期
    off_hire:String,//停租日期
    start_date:String,//起租日期
    area:String,//收费面积
    earnestMoney:String,//保证金
    agencyfee:String,//中介费
    isRentMoney:Boolean ,//是否收租
    totalMoney:String, //合同总价
    increase:String,//租金递增
    earnestExplain:String,//保证金说明
    remark:String,//备注
    accessory:String,//附件
    contractName:String
});
const advertiseModel=model('advertiseModel',advertiseSchema,'advertise');
module.exports.advertiseModel=advertiseModel;